﻿#include <vector>
#include <time.h>
#include <chrono>
#include <Windows.h>
using namespace std::chrono;
using namespace std;

int main()
{
	auto time2 = duration_cast<seconds>(high_resolution_clock::now().time_since_epoch()).count();
	printf("%lld   =====================   %lld\n", time(NULL), time2);
	Sleep(1000);
	time2 = duration_cast<nanoseconds>(high_resolution_clock::now().time_since_epoch()).count();
	printf("%lld   =====================   %lld\n", time(NULL), time2);
	Sleep(2000);
	time2 = duration_cast<seconds>(high_resolution_clock::now().time_since_epoch()).count();
	printf("%lld   =====================   %lld\n", time(NULL), time2);
	getchar();
	return 0;
}

